package com.cty.servlet.servlet8;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Auther: cty
 * @Date: 2020/2/16 16:53
 * @Description:
 * @version: 1.0
 */
@WebServlet(name = "FilterTestServlet")
public class FilterTestServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //设置请求编码格式
        //设置响应编码格式
        //获取请求信息
        //处理请求信息

        System.out.println("FilterTestServlet.service(我是servlet)");
        //响应处理结果
        resp.getWriter().write("FilterTestServlet.service(我是servlet)");
    }
}
